package com.client.controller;

import com.client.Util.Sample;
import com.common.untils.CommonResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @create 2022-09-08
 */
@RestController
@RequestMapping("client/zhuce")
public class Yanzhengma {
    @PostMapping("noteByPhone/{telephone}")
    public CommonResult noteByPhone(@PathVariable String telephone)throws Exception{
        String s = Sample.sendCode(telephone);
        return new CommonResult(2000,"发送验证码成功",s);
    }
}
